package com.tc.zigbee.zcl.command;

import com.tc.util.DataUtil;

public class DataValue {
	public byte type;
	public byte[] value;
	public DataValue(byte type, byte[] value) {
		super();
		this.type = type;
		this.value = value;
	}
	@Override
	public String toString() {
		if(value.length == 1)
		return value[1] + "";
		if(value.length == 2)
			return DataUtil.shortValue(value) + "";
		return super.toString();
		
	}
	
}
